﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Concert.Musique
{
    public class Location
    {

        #region Champ
        private string _city;
        private string _country;
        private string _street;
        private string _postalcode;
        private int _geolat;
        private int _geolong;
        private string _link;
        private string _numerotel;
        private string _image;

        #endregion

        #region Proprietés
        public string city
        {
            get { return _city; }
            set { _city = value; }
        }

        public string country
        {
            get { return _country; }
            set { _country = value; }
        }

        public string street
        {
            get { return _street; }
            set { _street = value; }
        }

        public string postalcode
        {
            get { return _postalcode; }
            set { _postalcode = value; }
        }

        public int geolat
        {
            get { return _geolat; }
            set { _geolat = value; }
        }


        public int geolong
        {
            get { return _geolong; }
            set { _geolong = value; }
        }

        public string link
        {
            get { return _link; }
            set { _link = value; }
        }

        public string numerotel
        {
            get { return _numerotel; }
            set { _numerotel = value; }
        }

        public string image
        {
            get { return _image; }
            set { _image = value; }
        }
        #endregion

        #region Constructeurs
        public Location()
        {
        }

        public Location(string ville)
        {
            this.city = ville;
        }

        public Location(string ville, string pays)
        {
            this.city = ville;
            this.country = pays;
        }

        public Location(string ville, string pays, string adresse)
        {
            this.city = ville;
            this.country = pays;
            this.street = adresse;
        }

        public Location(string ville, string pays, string adresse, string geoLat, string geoLong)
        {
            this.city = ville;
            this.country = pays;
            this.street = adresse;
            this.geolat = geolat;
            this.geolong = geolong;
        }

        #endregion

        #region Méthodes
        public override string ToString()
        {
            return city;
        }
        #endregion










    }
}
